<script>
export default {
  name: 'Breadcrumb',
  functional: true,
  render: (h, context) => {
    console.log('context', context.slots())
    const vnode = []
    context.slots().default.forEach((item, index, arr) => {
      vnode.push(item)
      if (arr.length - 1 !== index) {
        vnode.push(h('i', { class: 'el-icon-arrow-right' }))
      }
    })
    return h('span', {}, vnode)
  }
}
</script>
<style lang="scss" scoped></style>
